package main

import (
	"fmt"
	"encoding/json"
	"github.com/jinzhu/configor"
)

var Config = struct {
	APPName string
	DeptIDToMatchID string
}{}

func main() {
	configor.Load(&Config, "config.yml")
	fmt.Printf("config.DeptIDToMatchID: %#v\n", Config.DeptIDToMatchID)
	x := fmt.Sprintf("%s", Config.DeptIDToMatchID)
	fmt.Printf("x: %s\n", x)

	data := map[string]int{}
	err := json.Unmarshal(([]byte)(x), &data)
	fmt.Printf("err: %#v\n", err)
	fmt.Printf("data: %#v\n", data)
}
